#include "reg52.h"
#include "intrins.h"
#include "delay.h"
sbit S7=P3^0;
sbit S6=P3^1;
sbit L1=P0^0;
unsigned char ucLed;
void main(){
	P0=0xff;
	P2=(P2&0x1f)|0x80;
	P2 &= 0x1F;
	while(1){
		if(S7==0){
			 Delay(20);
			while(S7==0);
			 Delay(20);
			L1=~L1;
			P2=(P2&0x1f)|0x80;
			P2 &= 0x1F;
		}
	}
}
//	P0 = 0xff;
//	P2 = P2 & 0x1F | 0x80; 
//   P2 &= 0x1F;
//while(1){
//if(P30==0) {
// Delay(20);	
//while(P30==0);
//Delay(20);
//// ucLed ^=1 ;				
// P0 = 0x00; 
//P2 = P2 & 0x1F | 0x80; 
//P2 &= 0x1F;
	